home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / Magazin / Future-PD / Legend / Install < prev    next >
Text File  |  2000-05-16  |  4KB  |  172 lines

  1. ; The Legend of the Elves (HD Version 1.5 and above) Installation Script
  2. ; (C) 1998/1999 Peter Armann
  3.  
  4. (complete 0)
  5.  
  6. (set #vernum (getversion))
  7. (set #ver (/ #vernum 65536))
  8. (set #vb (database "vblank"))
  9.  
  10. (If (= (cat #vb) 60)
  11.    (abort "You need a PAL Amiga to run \"The Legend of the Elves\".\nSorry!")
  12. )
  13.  
  14. (message (cat "Thank you for choosing to install \"The Legend of the Elves\".\n\n"
  15.               "This script will guide you through the simple installation procedure.\n\n"  
  16.               "Please make sure that your Amiga has the minimum requirement of 2Mb Chip Ram before proceeding.\n\n"
  17.               "The game will run better with Fast Ram installed.\n"
  18.               "We recommend 2-4Mb Fast Ram for optimum performance."
  19.          )
  20. )
  21.  
  22. (set #destdir
  23.    (askdir
  24.       (prompt "Please select the directory where the\n\"Legend of the Elves\" directory should be created")
  25.       (help @askdir-help)
  26.       (default "Work:")
  27.    )
  28. )
  29.  
  30. (If (< (getdiskspace #destdir) 2621440)
  31.    (abort (cat "The drive that you have selected does not have enough free space.\n"
  32.                "\"The Legend of the Elves\" needs just over 2Mb of Hard Disk Space.\n\n"
  33.                "Please restart the Installation process and choose a different drive."
  34.           )
  35.    )
  36. )
  37.  
  38. (set @default-dest (tackon #destdir "Elves"))
  39. (if (not (exists (@default-dest)))
  40.    (makedir @default-dest (infos))
  41. )
  42.  
  43. (copyfiles
  44.    (source "c/Elves.info")
  45.    (dest #destdir)
  46. )
  47.  
  48. (complete 2)
  49.  
  50. (makedir (tackon @default-dest "savegame"))
  51.  
  52. (copyfiles
  53.    (source "Title")
  54.    (infos)
  55.    (dest @default-dest)
  56. )
  57.  
  58. (complete 10)
  59.  
  60. (copyfiles
  61.    (source "Eric")
  62.    (infos)
  63.    (dest @default-dest)
  64. )
  65.  
  66. (complete 40)
  67.  
  68. (copyfiles
  69.    (source "Legend.guide")
  70.    (infos)
  71.    (dest @default-dest)
  72. )
  73.  
  74. (complete 50)
  75.  
  76. (copyfiles
  77.    (source "")
  78.    (dest @default-dest)
  79.    (pattern "#?.iff")
  80. )
  81.  
  82. (complete 55)
  83.  
  84. (copyfiles
  85.    (source "")
  86.    (dest @default-dest)
  87.    (pattern "C#?")
  88. )
  89.  
  90. (complete 57)
  91.  
  92. (copyfiles
  93.    (source "")
  94.    (dest @default-dest)
  95.    (pattern "ODATA#?")
  96. )
  97.  
  98. (complete 82)
  99.  
  100. (copyfiles
  101.    (source "")
  102.    (dest @default-dest)
  103.    (pattern "BACKG#?")
  104. )
  105.  
  106. (complete 97)
  107.  
  108. (copyfiles
  109.    (source "hdversion")
  110.    (dest @default-dest)
  111. )
  112.  
  113. (complete 99)
  114.  
  115. (message (cat "Thank you for installing \"The Legend of the Elves\"\n\n"
  116.               "1. Double click the \"Title\" icon to load the game\n"
  117.               "and see the Introductory Animation first or\n"
  118.               "2. Double click the \"Eric\" icon to load the game\n"
  119.               "without the Introductory Animation\n\n"
  120.               "Please remember to read the User Guide before playing the game\n\n"
  121.  
  122.               "Register your copy of \"The Legend of the Elves\" for free at\n"
  123.               "http://www.ericelf.freeserve.co.uk/\n"
  124.               "if you didn't download it from the official web site"
  125.         )
  126. )
  127.  
  128. ; The following displays the User Guide according to OS Version
  129. ; If the user is running OS3.0 or above, Multiview (in it's default location) loads
  130. ; If the user is running an OS below 3.0, AmigaGuide (if it exists) laods
  131.  
  132. (makeassign "Eric" @default-dest)
  133.  
  134. (If (= @user-level 1)
  135.    (working "Viewing User Guide...")
  136. )
  137.  
  138. (If (not (exists "ENV:fromguide"))
  139.    (   
  140.       (If (< #ver 39)
  141.          (If (exists "SYS:Utilities/AmigaGuide" (noreq))
  142.             (run "SYS:Utilities/AmigaGuide Eric:Legend.guide"
  143.                (prompt "Do you want to read the User Guide now?\n")
  144.                (help (cat "The Installer will display the User Guide using AmigaGuide if you select \"Proceed\".\n"
  145.                           "We recommend that you read the User Guide before running the game."
  146.                      )
  147.                )
  148.                (confirm)
  149.                (safe)
  150.             )
  151.          ) 
  152.       )
  153.  
  154.       (If (> #ver 38)
  155.          (If (exists "SYS:Utilities/Multiview" (noreq))
  156.             (run "SYS:Utilities/Multiview Eric:Legend.guide"
  157.                (prompt "Do you want to read the User Guide now?\n")
  158.                (help (cat "The Installer will display the User Guide using Multiview if you select \"Proceed\".\n"
  159.                           "We recommend that you read the User Guide before running the game."
  160.                      )
  161.                )
  162.                (confirm)
  163.                (safe)
  164.             )
  165.          )
  166.       )
  167.    )
  168. )
  169.  
  170. (complete 100)
  171. (exit)
  172.